<?php
$this->load->helper('form');
$attributes = array('onsubmit' => 'userAddRequest(); return false;');
echo form_open('#',$attributes);
?>
<table>
	<tr>
		<td class='form-field'> <strong> Nickname :</strong></td>
		<td><?php
		$data = array (
			'name' => 'nickname',
			'id' => 'nickname',
			'maxlength' => '30',
			'size' => '30',
			'value'		=> $values['nickname_val']
		);
		echo form_input($data);
		?>
		<td class='error_message'><?=$errors['nickname_err'];?></td>
		</td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> First Name :</strong></td>
		<td><?php
		$data = array (
			'name' => 'firstname',
			'id' => 'firstname',
			'maxlength' => '50',
			'size' => '30',
			'value'	=> $values['firstname_val']			
		);
		echo form_input($data);
		?>
		</td>
		<td class='error_message'><?=$errors['firstname_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> Last Name :</strong></td>
		<td><?php
		$data = array (
			'name' => 'lastname',
			'id' => 'lastname',
			'maxlength' => '50',
			'size' => '30',
			'value'	=> $values['lastname_val']
		);
		echo form_input($data);
		?>
		</td>
		<td class='error_message'><?=$errors['lastname_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> E-mail :</strong></td>
		<td><?php
		$data = array (
			'name' => 'email',
			'id' => 'email',
			'maxlength' => '100',
			'size' => '50',
			'value'	=> $values['email_val']
		);
		echo form_input($data);
		?>
		</td>
		<td class='error_message'><?=$errors['email_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> Password :</strong></td>
		<td><?php
		$data = array (
			'name' => 'pwd1',
			'id' => 'pwd1',
			'maxlength' => '30',
			'size' => '30',
			'value'	=> $values['pwd1_val']
			
		);
		echo form_password($data);
		?>
		</td>
		<td class='error_message'><?=$errors['pwd1_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'> <strong> Password (check) :</strong></td>
		<td><?php
		$data = array (
			'name' => 'pwd2',
			'id' => 'pwd2',
			'maxlength' => '30',
			'size' => '30',
			'value'	=> $values['pwd2_val']
			
		);
		echo form_password($data);
		?>
		</td>
		<td class='error_message'><?=$errors['pwd2_err'];?></td>
	</tr>
	
	<tr>
		<td class='form-field'>
		<?php echo form_submit('submit', 'Send');?>
		</td>
	</tr>
</table>

<?php
echo form_close('');
?>